package com.solution.decorator;

import org.displaytag.decorator.TableDecorator;

import com.solution.model.ExamType;

public class ExamDecorator extends TableDecorator{

	public String getActionEdit() {
		ExamType examType = (ExamType)getCurrentRowObject();
		String examTypeId = examType.getId()+"";
		return "<a href=\"javascript:fnEditViewExamDetails('"+ examTypeId + "','Edit')\">Edit</a>"; 
	}
	
	public String getActionView() {
		ExamType examType = (ExamType)getCurrentRowObject();
		String examTypeId = examType.getId()+"";
		return "<a href=\"javascript:fnEditViewExamDetails('"+ examTypeId + "','View')\">View</a>"; 
	}
}
